import api from "@/js/api.js";
export function getListDept() {
    const params = new URLSearchParams();
    return api.get('/dept/list', params);
}

export function getListDeptByType(type) {
    const params = new URLSearchParams();
    params.append('type', type);
    return api.post('/dept/listByType', params);
}

export function addDept(depId,department,type) {
    const params = new URLSearchParams();
    params.append('depId', depId);
    params.append('department', department);
    params.append('type', type);
    return api.post('/dept/addDept', params);
}